package com.blb.ssm.redis;

import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheException;
import org.apache.shiro.cache.CacheManager;

/**
 * 自定义缓存管理器
 * @author Administrator
 *
 */
public class CustomCacheManager implements CacheManager {
	
	@Override
    public <K, V> Cache<K, V> getCache(String name) throws CacheException {
    	System.out.println("正在获得缓存："+name);
        return new RedisCache<K,V>();
    }
}